<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.thinkgem.jeesite.common.persistence.BaseEntity" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>在线预约管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/momarketing/onlineSignup/">在线预约列表</a></li>
		<shiro:hasPermission name="momarketing:onlineSignup:edit"><li><a href="${ctx}/momarketing/onlineSignup/form">在线预约添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="onlineSignup" action="${ctx}/momarketing/onlineSignup/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>姓名 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>手机号 ：</label><form:input path="mobile" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>邮箱 ：</label><form:input path="email" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead>
			<tr>
				<th>标题</th>
				<c:if test="${config.nameFlag eq 1 }"><th>姓名</th></c:if>
				<c:if test="${config.mobileFlag eq 1 }"><th>电话</th></c:if>
				<c:if test="${config.mailFlag eq 1 }"><th>邮箱</th></c:if>
				<c:if test="${config.idnoFlag eq 1 }"><th>身份证</th></c:if>
				<c:if test="${config.qqFlag eq 1 }"><th>QQ</th></c:if>
				<c:if test="${config.descFlag eq 1 }"><th>描述</th></c:if>
				<shiro:hasPermission name="momarketing:onlineSignup:edit">
					<th>操作</th>
				</shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="onlineSignup">
			<tr>
				<td>${config.name}</td>
				<c:if test="${config.nameFlag eq 1 }"><td>${onlineSignup.name}</td></c:if>
				<c:if test="${config.mobileFlag eq 1 }"><td>${onlineSignup.mobile}</td></c:if>
				<c:if test="${config.mailFlag eq 1 }"><td>${onlineSignup.email}</td></c:if>
				<c:if test="${config.idnoFlag eq 1 }"><td>${onlineSignup.idno}</td></c:if>
				<c:if test="${config.qqFlag eq 1 }"><td>${onlineSignup.qq}</td></c:if>
				<c:if test="${config.descFlag eq 1 }"><td>${onlineSignup.remarks}</td></c:if>
				<shiro:hasPermission name="momarketing:onlineSignup:edit"><td>
    				<a href="${ctx}/momarketing/onlineSignup/form?id=${onlineSignup.id}">修改</a>
					<a href="${ctx}/momarketing/onlineSignup/delete?id=${onlineSignup.id}" onclick="return confirmx('确认要删除该在线预约吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
